﻿using LY.DataAccess.Repository;
using LY.Entity;
using LY.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LY.Business.ServiceImpl
{
    public class ProjectAttentionService : IProjectAttentionService
    {
        ProjectAttentionRepository _pro;

        public ProjectAttentionService()
        {
            _pro = new ProjectAttentionRepository();
        }
        //取消关注
        public int CancelAttention(int id, int memberId)
        {
            return _pro.CancelAttention(id, memberId);
        }
        //添加关注
        public int AddProjectAttention(R_ProjectAttention projectId)
        {
            return (int)_pro.Insert(projectId);
        }
        //判断该用户是否关注过该项目
        public int getAttention(int id, int memberId)
        {
            return _pro.getAttention(id, memberId);
        }
    }
}
